package com.zhl.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhl.mapper.FavoriteMapper;
import com.zhl.model.Favorite;

@Service
public class FavoriteService {
	
	@Autowired
	private FavoriteMapper favoriteMapper;

	String resultmsg ="";
	
	public  void setFavoriteMapper(FavoriteMapper favoriteMapper) {
		this.favoriteMapper = favoriteMapper;
	}
	 
	public List<Favorite> findAll( ){

		List<Favorite> allUsers = favoriteMapper.findAll();

		return allUsers;
		
	}
	
}
